Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to #29902 - Renaming PeriodStart and PeriodEnd columns of a temporal table causes them to be swapped #32328

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Nov 17, 2023

Problem was that migration model differ was too lax with pairing up columns. Fix is to add more predicates - one that matches annotations+values and one that just matches annotations, ignoring the values, before we fallback to simple column definition. Now that we reworked temporal annotations, this actually gives clean match for the period start and period end column. Moreover, this change could improve matching in other, non-temporal scenarios.

Fixes #29902

…ral table causes them to be swapped

Problem was that migration model differ was too lax with pairing up columns. Fix is to add more predicates - one that matches annotations+values and one that just matches annotations, ignoring the values, before we fallback to simple column definition.
Now that we reworked temporal annotations, this actually gives clean match for the period start and period end column.
Moreover, this change could improve matching in other, non-temporal scenarios.

Fixes #29902
@maumar maumar requested a review from bricelam November 17, 2023 06:37
@maumar maumar merged commit 1e32073 into main Nov 17, 2023
7 checks passed
@maumar maumar deleted the fix29902 branch November 17, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renaming PeriodStart and PeriodEnd columns of a temporal table causes them to be swapped
2 participants